import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    clientWidth:'',//全局页面宽度，用于适配页面
    clientHeight:'',//全局页面宽度，用于适配页面
  },
  mutations: {
    Gwidth(state,WidthNum){
      state.clientWidth = WidthNum;
  },
   Gheight(state,HeightNum){
    state.clientHeight = HeightNum;
}
  },
  getters:{
     cwidth(state){
       return state.clientWidth
     },
     cheight(state){
       return state.clientHeight
     }
  },
  actions: {},
  modules: {}
});
